package com.appbase.custom.base;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Describe:   帮助问题类
 * Created by $USER_NAME on 2018/11/22.
 */
public class FeedBackInfo implements Parcelable {


    /**
     * id : 35
     * question : 常见问题
     * type :
     * title : 如何添加设备？
     * answer : 添加设备方法有两种：
     方法1：AP热点添加
     方法2：设备扫码添加
     添加设备时，请选择添加方式并按添加流程添加
     */

    private String id;
    private String question;
    private String type;
    private String title;
    private String answer;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.question);
        dest.writeString(this.type);
        dest.writeString(this.title);
        dest.writeString(this.answer);
    }

    public FeedBackInfo() {
    }

    protected FeedBackInfo(Parcel in) {
        this.id = in.readString();
        this.question = in.readString();
        this.type = in.readString();
        this.title = in.readString();
        this.answer = in.readString();
    }

    public static final Parcelable.Creator<FeedBackInfo> CREATOR = new Parcelable.Creator<FeedBackInfo>() {
        @Override
        public FeedBackInfo createFromParcel(Parcel source) {
            return new FeedBackInfo(source);
        }

        @Override
        public FeedBackInfo[] newArray(int size) {
            return new FeedBackInfo[size];
        }
    };
}
